using HSharp.Business;
using Microsoft.AspNetCore.Mvc;

namespace WebApi7A.Controllers
{
    [ApiController]
    [Route("[controller]")]
    public class UserController : ControllerBase
    {
        private readonly ILogger<UserController> _logger;

        private readonly IUserService _user;

        public UserController(ILogger<UserController> logger, IUserService user)
        {
            _logger = logger;
            _user = user;
        }

        [HttpPost(Name = "GetUser")]
        public string GetUser()
        {
            return _user.GetUserName();
        }
    }
}